<?php $q = isset($q) ? $q : null; ?>
<div id="searchsummary"><?=$total_items?> <?=($total_items > 1 ? 'people were' : 'person was')?> found<?php if(!empty($q)):?> for the search '<?=$q?>'<?php endif; ?></div>
<?=$pagination?>
<ol id="results">
	<?php foreach($results as $r): ?>
		<li class="person">
			<h2><a href="/person/<?=$r->musicnetid?>.html"><?=$r->name_with_highlights($q)?></a></h2>
			<div class="metadata">
				<div class="bd"><span class="label">Born</span><?=$r->birth_date()?></div>
				<div class="dd"><span class="label">Died</span><?=$r->death_date()?></div>
				<ul class="catalogs">
					<?php foreach($r->catalogs() as $c): ?>
						<li class="catalog <?=$c?>"><?=Helper_Codex::catalog_title($c)?></li>
					<?php endforeach; ?>
				</ul>
			</div>
		</li>
	<?php endforeach; ?>
</ol>
<?=$pagination?>